#pragma once

#include<DirectXMath.h>

namespace Rendering { 

	struct PosColorVertex
	{
		PosColorVertex()
		{
			
		}
		PosColorVertex(DirectX::XMFLOAT3 position, DirectX::XMFLOAT4 color)
			: Pos(position)
			, Color(color)
		{

		}
		DirectX::XMFLOAT3 Pos;
		DirectX::XMFLOAT4 Color;
	};

	/// <summary>Direct3D layout for position and color. </summary>
	static D3D11_INPUT_ELEMENT_DESC PosColorVertexLayout[] =
	{
		{"POSITION", 0, DXGI_FORMAT_R32G32B32_FLOAT, 0,  0, D3D11_INPUT_PER_VERTEX_DATA, 0},
		{"COLOR", 0, DXGI_FORMAT_R32G32B32A32_FLOAT, 0, D3D11_APPEND_ALIGNED_ELEMENT, D3D11_INPUT_PER_VERTEX_DATA, 0}
	};
}